<?php
class Rep_message_model extends Model {

    function insertRepMessage($data){
        $this->db->insert('rep_message',$data);
    }

    function updateStatus($condition,$status){
        $this->db->where($condition);
        $this->db->update('rep_messages', $status);
    }

    function updateAnswer($condition,$data){
        $this->db->where($condition);
        $this->db->update('rep_messages', $data);
    }

    function deleteMessage($message_id){
        $this->db->where('message_id', $message_id);
        $this->db->delete('rep_messages');
    }

}

?>
